package com.navinfo.tripanalysis.common.arithmetic.custom;

import com.navinfo.tripanalysis.common.arithmetic.SharpTurning_DF;
import lombok.Data;

/**
 * 东风急转弯算法{@link SharpTurning_DF}的统计变量
 */
@Data
public class VarSharpTurning {
    /**
     * 累计急转弯次数
     */
    private int number;

    /**
     * 上一个急转弯时间
     */
    private long preSharpTurningTime;

    /**
     * 累积四个点的方向，-1为未设置
     */
    private int[] directionArr = {-1, -1, -1, -1};

    public void clearDirectionArr(int gpsDirection){
        directionArr[0] = gpsDirection;
        directionArr[1] = -1;
        directionArr[2] = -1;
        directionArr[3] = -1;
    }

}
